<?php

namespace app\common\service\qrcode;

use Grafika\Color;
use Grafika\Grafika;

class Dituima extends Base
{

    public function __construct()
    {
        parent::__construct();
    }

    /**
     * @return mixed
     * @throws \app\common\exception\BaseException
     * @throws \think\exception\DbException
     * @throws \Exception
     */
    public function getImage($wxappId, $imgName, $path, $sceneArr=null)
    {
        // 下载小程序码
        $qrcode = $this->saveQrcode222($wxappId, $imgName, $path, $sceneArr);
        //$qrcode = $this->saveQrcode333($wxappId, $imgName, $path, $sceneArr);
        $backPath = str_ireplace(WEB_PATH, "/", $qrcode);
        // 拼接海报图
        return $backPath;
    }

}